package cn.lvji.sus;

import java.util.ServiceLoader;

/**
 * 获取SPI实现
 *
 * @author zhouzx
 */
public class GetSPIMaps {
    private static Maps maps;

    static {
        ServiceLoader<Maps> spiMaps = ServiceLoader.load(Maps.class);
        for (Maps map : spiMaps) {
            maps = map;
        }
    }


    public static Maps getMaps() {
        return maps;
    }
}
